package gob.osinerg.emergencia.service;

import gob.osinerg.emergencia.bean.FormularioEmergenciaUnmay;
import gob.osinerg.emergencia.bean.SiniestroFinal;
import gob.osinerg.emergencia.bean.SiniestroPreliminar;
import gob.osinerg.emergencia.dao.SiniestroFinalDAO;

import java.util.List;

public class SiniestroFinalServiceImpl implements SiniestroFinalService{

	private SiniestroFinalDAO dao;

	public void save(SiniestroFinal bean, FormularioEmergenciaUnmay beanform) throws Exception {
		dao.save(bean,beanform);
	}
	
	public List listarTipoSiniestro() throws Exception{
		return dao.listarTipoSiniestro();
	}
 
	public List findFormEmergenciaUnmay(String usrioCrdor, Long frmlarioId) throws Exception{
		return dao.findFormEmergenciaUnmay(usrioCrdor,frmlarioId);
	}
	
	public List findSiniestroPreliminar(String usrioCrdor, Long frmlarioId) throws Exception{
		return dao.findSiniestroPreliminar(usrioCrdor,frmlarioId);
	}
	
	public SiniestroPreliminar findSiniestroPreliminar(Long id) throws Exception{
		return dao.findSiniestroPreliminar(id);
	}

	public SiniestroFinalDAO getDao() {
		return dao;
	}
	public void setDao(SiniestroFinalDAO dao) {
		this.dao = dao;
	}

	public List findSiniestroFinal(String usrioCrdor, Long frmlarioId)
			throws Exception {
		return dao.findSiniestroFinal(usrioCrdor,frmlarioId);
	}

	public SiniestroFinal findSiniestroFinal(Long id) throws Exception {
		return dao.findSiniestroFinal(id);
	}

	@Override
	public Long obtenerIdSiniestroFinal(Long idFormulario) throws Exception {
		// TODO Auto-generated method stub
		return dao.obtenerIdSiniestroFinal(idFormulario);
	}
	
}	